/*
 * @Date: 2022-09-16 09:20:00
 * @LastEditTime: 2022-09-16 09:23:02
 */
import Layout from '@/layout'



export const staticRoutes = [
  {
    path: '/login',
    component: () => import('@/views/login/index'),
    hidden: true
  },

  
  {
    path: '/',
    component: Layout,
    redirect: '/dashboard',
    children: [{
      path: 'dashboard',
      name: '首页',
      component: () => import('@/views/dashboard/index'),
      meta: { title: '首页', icon: 'dashboard' }
    }]
  },
  
  {
    path: '/404',
    component: () => import('@/views/404'),
    hidden: true
  },
  
]


export const syncRoutes = [
  {
    path:'/usercontrol',
    name:'userControl',
    component:() => import('@/layout'),
    meta:{
      title:'权限管理'
    },
    children:[
      {
        path:'user',
        name:'User',
        component:() => import('@/views/userControl/user'),
        meta:{
          title:'用户管理',
        }
      },
      {
        path:'buttons',
        name:'Buttons',
        component:() => import('@/views/userControl/button'),
        meta:{
          title:'按钮权限',
        }
      },
    ]

  },
]

// 任意路由
export const everyRoutes = { path: '*', redirect: '/404', hidden: true }

